 #define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include <string.h>
void swap(int arr1[], int arr2[],int a)
{
	int temp = 0;
	for (int i = 0; i < a ; i++)
	{
		temp = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = temp;

	}
}
int main()
{
	int arr1[5] = { 1,2,3,4,5 };
	int arr2[5] = { 5,6,7,8,9 };
	int sz = sizeof (arr1) / sizeof (arr1[0]);
	swap(arr1, arr2,sz);
	for (int i = 0; i < sz; i++)
	{
		printf("%d", arr1[i]);
	}
	printf("\n");
	for (int i = 0; i < sz; i++)
	{
		printf("%d", arr2[i]);
	}
	return 0;

}